<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>

<%
    //返回当前页面所在的应用的名字
    String path = request.getContextPath();

    String basePath = request.getScheme() //返回当前页面使用的协议，http 或是 https
            +"://"+
            request.getServerName() // 返回当前页面所在的服务器的名字(IP地址)
            +":"+
            request.getServerPort() // 返回当前页面所在的服务器使用的端口
            + path;
%>

<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">
		<!-- Sidebar user panel -->
		<div class="user-panel">
			<div class="pull-left image">
				<img src="<%=basePath%>/static/img/user2-160x160.jpg"
					 class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p>xxx</p>
				<a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
			</div>
		</div>

		<!-- sidebar menu: : style can be found in sidebar.less -->
		<ul class="sidebar-menu">

			<li class="treeview"><a href="#"> <i class="fa fa-cogs"></i>
				<span>系统管理</span> <span class="pull-right-container"> <i
						class="fa fa-angle-left pull-right"></i>
				</span>


			</a>
				<ul class="treeview-menu">

					<li class="system-setting"><a
							href="<%=basePath%>/static/user/findAll.do"> <i
							class="fa fa-circle-o"></i> 用户管理
					</a></li>
					<li class="system-setting"><a
							href="<%=basePath%>/static/role/findAllRole.do"> <i
							class="fa fa-circle-o"></i> 角色管理
					</a></li>
					<li class="system-setting"><a
							href="<%=basePath%>/static/permission/findAllPermission.do">
						<i class="fa fa-circle-o"></i> 资源权限管理
					</a></li>
					<li class="system-setting"><a
							href="<%=basePath%>/static/sysLog/findAll.do"> <i
							class="fa fa-circle-o"></i> 访问日志
					</a></li>
				</ul></li>
			<li class="treeview"><a href="#"> <i class="fa fa-cube"></i>
				<span>基础数据</span> <span class="pull-right-container"> <i
						class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
				<ul class="treeview-menu">

					<li class="system-setting"><a
							href="<%=basePath%>/static/product/findAllProduct.do">
						<i class="fa fa-circle-o"></i> 产品管理
					</a></li>
					<li class="system-setting"><a
							href="<%=basePath%>/static/orders/findAllOrders.do?pageNum=1&pageSize=4"> <i
							class="fa fa-circle-o"></i> 订单管理
					</a></li>

				</ul></li>

		</ul>
	</section>
	<!-- /.sidebar -->
</aside>